<div class="form-group">
    <label class="col-sm-2 control-label">权限名</label>
    <div class="col-sm-4">
        <input type="text" class="form-control" name="{{ form_name }}[rolename]" required="required" value="{{ entity.rolename }}">
    </div>
</div>

<div class="delimiter"></div>

<div class="form-group">
    <div class="col-md-8 col-md-offset-1">
        <input type="checkbox" id="btn-check-all">全选
        <input type="checkbox" id="btn-check-none">反选
    </div>

</div>

<input type="hidden" value="{{ entity.privileges }}" id="priv-val">

<div class="form-group priv-item">
    <label class="col-sm-2 control-label no-padding-right">品牌管理</label>
    <div class="col-sm-10">
        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="1001">
            <span class="text">添加品牌</span>
        </label>
        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="1002">
            <span class="text">查看品牌</span>
        </label>
    </div>
</div>

<div class="form-group priv-item">
    <label class="col-sm-2 control-label no-padding-right">门店管理</label>
    <div class="col-sm-10">
        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="2001">
            <span class="text">添加门店</span>
        </label>
        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="2002">
            <span class="text">查看门店</span>
        </label>
    </div>
</div>

<div class="form-group priv-item">
    <label class="col-sm-2 control-label no-padding-right">商品管理</label>
    <div class="col-sm-10">
        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="3001">
            <span class="text">添加商品</span>
        </label>
        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="3002">
            <span class="text">查看商品</span>
        </label>
    </div>
</div>

<div class="form-group priv-item">
    <label class="col-sm-2 control-label no-padding-right">后台用户管理</label>
    <div class="col-sm-10">
        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="4001">
            <span class="text">添加用户</span>
        </label>
        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="4002">
            <span class="text">查看用户</span>
        </label>

        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="4003">
            <span class="text">添加权限</span>
        </label>
        <label class="control-label no-padding-right">
            <input type="checkbox" name="{{ form_name }}[privileges][]" value="4004">
            <span class="text">查看权限</span>
        </label>
    </div>
</div>